import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import TypeNav from '@/components/TypeNav'
import store from '@/store'
import '@/mock/mockServer.js'
import 'swiper/css/swiper.css'
import Carousel from '@/components/Carousel'
Vue.component('TypeNav', TypeNav)
Vue.component('Carousel', Carousel)

Vue.config.productionTip = false

new Vue({
  router,
  beforeCreate () {
    // 全局事件总线$bus配置
    Vue.prototype.$bus = this
  },
  store,
  render: h => h(App),
}).$mount('#app')
